package zut.cs.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import zut.cs.daomain.Account;

import java.util.List;

@Repository
public interface IAccountDao {

    //查询账户
    @Select("select * from account")
    public List<Account> findAll();
    //保存账户
    @Insert("insert into account(name,money) values (#{name},#{money})")
    public void saveAccount(Account account);

}
